﻿using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Input;
using Timetable.AWP.Host.WeekType;

namespace Timetable.AWP.ViewModels
{
    public class Ribbon:BaseViewModel
    {
        public ObservableCollection<WeekType> WeekTypes { get; set; }

        public readonly DependencyProperty SelectedWeekTypeProperty;
        public WeekType SelectedWeekType
        {
            get { return GetValue(SelectedWeekTypeProperty) as WeekType; }
            set
            {
                var oldValue = GetValue(SelectedWeekTypeProperty);
                SetValue(SelectedWeekTypeProperty, value);
                OnPropertyChanged(new DependencyPropertyChangedEventArgs(SelectedWeekTypeProperty, oldValue, value));
            }
        }

        public Ribbon()
        {
            SelectedWeekTypeProperty = MainWindow.SelectedWeekTypeProperty.AddOwner(typeof (Ribbon));
        }

        //public ICommand 
    }
}
